/*global Vue*/
import Router from 'vue-router'

import indexPage from '../page/indexPage'
import login from '../page/login'
import classification from '../page/classification'
import chooseAddress from '../page/chooseAddress'
import searchAddress from '../page/searchAddress'
import shop from '../page/shop'
import goodsServe from '../page/goodsServe'
import goodsSell from '../page/goodsSell'
import preferred from '../page/preferred'

Vue.use(Router);

module.exports = new Router({
  routes: [
      {
          path: '/',//首页
          name: 'indexPage',
          component: indexPage
      },
      {
          path: '/login',//登录页
          name: 'login',
          component: login
      },
      {
          path: '/classification',//附近选项卡选择店铺变化页
          name: 'classification',
          component: classification
      },
      {
          path: '/chooseAddress',//选择城市页
          name: 'chooseAddress',
          component: chooseAddress
      },
      {
          path: '/searchAddress',//选择+搜索城市页
          name: 'searchAddress',
          component: searchAddress
      },
      {
          path: '/shop',//店铺首页
          name: 'shop',
          component: shop
      },
      {
          path: '/goodsServe',//服务类商品页
          name: 'goodsServe',
          component: goodsServe
      },
      {
          path: '/goodsSell',//实体类商品页
          name: 'goodsSell',
          component: goodsSell
      },
      {
          path: '/preferred',//优选页
          name: 'preferred',
          component: preferred
      },
  ]
})
